package com.cn.cash.baselib;

import android.app.Application;

import java.io.File;

/**
 * Created by CN.
 */

public class BaseManager {
    private static Application application;
    private static boolean isDebugMode;
    private static File imgCacheFile;
    public static void init(Application application){
        init(application,false,null);
    }
    public static void init(Application application,boolean isDebugMode){
        init(application,isDebugMode,null);
    }
    public static void init(Application application,boolean isDebugMode,File imgCacheFile){
        BaseManager.application = application;
        BaseManager.isDebugMode = isDebugMode;
        BaseManager.imgCacheFile = imgCacheFile;
    }
    public static Application getApplication() {
        return application;
    }
    public static boolean isIsDebugMode() {
        return isDebugMode;
    }

    public static File getImgCacheFile() {
        return imgCacheFile;
    }

    public static void setImgCacheFile(File imgCacheFile) {
        BaseManager.imgCacheFile = imgCacheFile;
    }
}
